Crate escargot[][src]

Escargot: A Cargo API

Why escargot

Compared to depending on cargo:

  • Faster compile times.
  • Simpler API.
  • Better interop with projects relying on other cargo versions.
  • Probably slower execution, especially on platforms without an optimized fork (e.g. Windows).

Relevant crates

Other related crates:

  • cargo for the real thing
  • cargo-metadata for a similar project specifically geared to the metadata subcommand.

Example

escargot::CargoBuild::new()
    .bin("bin_fixture")
    .current_release()
    .current_target()
    .exec()
    .unwrap();

Structs

Cargo

Top-level command.

CargoBuild

The build subcommand.

CargoError

Cargo command failure information.

CargoRun

The run subcommand (emulated).

CargoTest

The test subcommand.

Message

An individual message from a cargo sub-command.

MessageItr

Messages returned from a cargo sub-command.

Enums

ErrorKind

For programmatically processing failures.

Constants

CURRENT_TARGET

The current process' target triple.

Type Definitions

CargoResult

Result of a cargo command.